package com.reggie.dto;

import com.reggie.pojo.Dish;
import com.reggie.pojo.DishFlavor;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.ArrayList;
import java.util.List;

/**
 * 数据传输单元
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class DishDto extends Dish {

    //菜品口味数据
    private List<DishFlavor> flavors = new ArrayList<>();

    private String categoryName;  //对应前端页面的categoryName

    private Integer copies;
}
